module nic_interface #(
	parameter NIOS_RAM_WIDTH			=	13,
	parameter S_ADDR_SIZE				=	2,
	parameter M_ADDR_SIZE				=	NIOS_RAM_WIDTH+2
	)
	(
	
	input 									reset,
	input										clk,
		
	//avalon slave interface signals to nios
	input										nios_s_chipselect, 
	input										nios_s_write,
	input										nios_s_read,
	input 	[S_ADDR_SIZE-1		:0]	nios_s_address,
	input 	[31					:0]	nios_s_writedata, 
	output 	[31					:0]	nios_s_readdata,
	output 									nios_s_waitrequest,
	
	
	//avalon master interface signals to nios
	output									nios_m_chipselect, 
	output									nios_m_write,
	output									nios_m_read,
	output 	[NIOS_RAM_WIDTH+1	:0]	nios_m_address,
	output 	[31					:0]	nios_m_writedata, 
	input 	[31					:0]	nios_m_readdata,
	input 									nios_m_waitrequest,
	
	
	
	//avalon slave interface signals to nic
	output									nic_s_chipselect, 
	output									nic_s_write,
	output									nic_s_read,
	output	[S_ADDR_SIZE-1		:0]	nic_s_address,
	output 	[31					:0] 	nic_s_writedata, 
	input 	[31					:0] 	nic_s_readdata,
	input 									nic_s_waitrequest,
	
	
	//avalon master interface signals to nic
	input										nic_m_chipselect, 
	input										nic_m_write,
	input										nic_m_read,
	input		[NIOS_RAM_WIDTH+1	:0]	nic_m_address,
	input 	[31					:0] 	nic_m_writedata, 
	output	[31					:0] 	nic_m_readdata,
	output									nic_m_waitrequest
	
	
	
); 


		assign 	nios_s_readdata		=	nic_s_readdata;
		assign	nios_s_waitrequest	=  nic_s_waitrequest;
		assign	nios_m_chipselect		=	nic_m_chipselect; 
		assign	nios_m_write			=	nic_m_write;
		assign	nios_m_read				=	nic_m_read;
		assign 	nios_m_address			=	nic_m_address;
		assign 	nios_m_writedata		=	nic_m_writedata;
		
		
		assign	nic_s_chipselect		=	nios_s_chipselect;
		assign	nic_s_write				=	nios_s_write;
		assign	nic_s_read				=	nios_s_read;
		assign	nic_s_address			=	nios_s_address;
		assign	nic_s_writedata		=	nios_s_writedata; 
		assign	nic_m_readdata			=	nios_m_readdata;
		assign	nic_m_waitrequest		=	nios_m_waitrequest;
		


endmodule
